package sng.modules.view.components.city.state
{
	import sng.modules.view.components.city.cursor.CityCursor;
	import sng.modules.view.components.city.cursor.CityCursorManager;
	import sng.modules.view.components.city.logic.City;
	import sng.modules.view.components.city.logic.unit.BaseBuilding;
	
	public class CityTurnState implements ICityState
	{
		public function CityTurnState(_city:City)
		{
			city=_city;
			
			//更改指针状态 eason 20110714
			CityCursorManager.getInstance().setCursor(CityCursor.TURN_CURSOR);
		}
		
		public var city:City;
		
		public function Execute(parameter:*=null):void
		{
			city.currentBuilding.rotate();
		}
		
		public function toString():String
		{
			return "CityTurnState";
		}
	}
}